<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAboutTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('about', function (Blueprint $table) {
            $table->increments('id');
            $table->string('company',50);
            $table->string('logo',255)->nullable();
            $table->string('thumbnail',255)->nullable();
            $table->mediumText('images')->nullable();
            $table->string('address',50)->nullable();
            $table->mediumText('introduce')->nullable();
            $table->string('telephone',30)->nullable();
            $table->string('mobilephone',30)->nullable();
            $table->string('email',30)->nullable();
            $table->string('en_name',100)->nullable();
            $table->mediumText('manage')->nullable();
            $table->timestamp('creat_at')->useCurrent();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('about');
    }
}
